package com.yang.framework.common.exception;

/**
 * 基础异常实现类
 */
public class BaseException extends RuntimeException implements IBaseException{

    private String errorCode;

    private String errorMessage;

    public BaseException(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    @Override
    public String getErrorCode() {
        return this.errorCode;
    }

    @Override
    public String getErrorMessage() {
        return this.errorMessage;
    }
}
